package com.buss.util;

import org.apache.log4j.DailyRollingFileAppender;
import org.apache.log4j.Priority;

public class LogAppender extends DailyRollingFileAppender{

	/**
	* @param priority
	* @return 
	* @see org.apache.log4j.AppenderSkeleton#isAsSevereAsThreshold(Priority)
	* @author: Adu 
	* @date: 2015-6-10 下午4:47:24 
	*/
	@Override
	public boolean isAsSevereAsThreshold(Priority priority) {
		//只判断是否相等，而不判断优先级
		return this.getThreshold().equals(priority); 
	}
	
}
